package com.yf.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 用户实体
 * 表名 user
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 16 13:57:31 CST 2018
 */
@Setter
@Getter
public class UserEntity  implements Serializable {
    private static final long serialVersionUID = 1L;
    //表ID
    private Long id;
    //等级ID
    private Long levelId;
    //名字
    private String name;
    //IMG-头像
    private String avatar;
    //性别
    private String sex;
    //手机号码
    private String phone;
    //登录ID
    private String openId;
    //统一ID
    private String unionId;
    //支付ID
    private String payId;
    //自己编号
    private String code;
    //团队编号
    private String team;
    //上级ID
    private Long parentId;
    //加入时间
    private Date joinTime;
    //升级时间
    private Date levelTime;
    //登录时间
    private Date loginTime;
    //团队路径
    private String path;
    //微信号
    private String wxid;
    //ENUM-状态:'整顿','停用','激活'
    private Integer status;

    public UserEntity(){

    }



    /**
     * 游客构造体
     * @param name
     * @param avatar
     * @param sex
     * @param openId
     * @param unionId
     * @param team
     * @param parentId
     * @param joinTime
     * @param levelTime
     * @param loginTime
     * @param status
     * @param levelId
     */

    public UserEntity(Long levelId, String name, String avatar, String sex, String phone, String openId, String unionId, Long parentId, Date joinTime, Date levelTime, Date loginTime, Integer status, String path,String code,String team) {
        this.levelId = levelId;
        this.name = name;
        this.avatar = avatar;
        this.sex = sex;
        this.phone = phone;
        this.openId = openId;
        this.unionId = unionId;
        this.code = code;
        this.team = team;
        this.parentId = parentId;
        this.joinTime = joinTime;
        this.levelTime = levelTime;
        this.loginTime = loginTime;
        this.status = status;
        this.path = path;
    }
}
